import axios from '@/network/request'
// 消息查看
let newsInfo = '/test/message'
export const newInfo = (user) => {
  return axios({
    method: 'get',
    url: newsInfo,
    params: { user },
    headers: {
      "Content-type": "application/x-www-form-urlencoded"
    },
    data: { unused: 0 }
  })
}
// 人员列表
export const tourlistmenu = (data) => {
  return axios({
    method: 'get',
    url: `/test/message/issend`,
    params: data

  })
}
// 消息发送
let mespost = '/test/message'
export const mesPost = (sendMessageDTO) => {
  return axios({
    method: 'post',
    url: mespost,
    data: { ...sendMessageDTO }
  })
}
// 导游新增
let touradd = '/test/user/insertUserInfo'
export const tourAdd = (data) => {
  return axios({
    method: 'post',
    url: touradd,
    data: data
  })
}

// 导游查询
export const tourquery = (data) => {
  return axios({
    method: 'get',
    url: '/test/message/issend',
    params: data
  })
}
// 未读消息查看
let unread = '/test/message/unread'
export const unreadMessage = () => {
  return axios({
    method: 'get',
    url: unread
  })
}